package top.ahwyy.controller.inter;

import java.util.ArrayList;

import top.ahwyy.model.carddata;
import top.ahwyy.model.userReplydata;
import top.ahwyy.model.zanUserdata;

public interface card {
	public String getJsonCardsList(int pages,int showTotal);
	
	public boolean saveCardMessage(String title,String content,String forumTypeName,String un);
	
	public String getContentByForumId(int fid);
	
	public String getLastUpdateTimeByForumId(int fid);
	
	public ArrayList<zanUserdata> getZanUserList(int forumId);
	
	public boolean userZan(int forumId,int uid);
	
	public int getUserIdByUn(String un);
	
	public boolean insertUserReply(String content,int forumId,int uid);
	
	public ArrayList<userReplydata> getReplyList(int forumId);
	
	/*根据关键字搜索帖子  返回帖子id的一个数组
	 * */
	public ArrayList<?> searchCardByKeyWord(String kw);
	
	public carddata getACarddataObjectByForumId(int forumId);
}
